<!DOCTYPE html>
<html 
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.prime.com.tr/ui">
    <ui:composition template="../templates/master.xhtml">
        <ui:define name="content">
            <h:form id="accountForm">
            	<p:dataTable value="#{accountQuery.results}" var="account">
            		<p:column>
            			<f:facet name="header">
            				<h:outputText value="Key" />
            			</f:facet>
            			<h:outputText value="#{account.key}" />
            		</p:column>
            		<p:column>
            			<f:facet name="header">
            				<h:outputText value="Name" />
            			</f:facet>
            			<h:outputText value="#{account.name}" />
            		</p:column>
            		<p:column>
            			<f:facet name="header">
            				<h:outputText value="Balance" />
            			</f:facet>
            			<h:outputText value="#{account.balance}" />
            		</p:column>
            	</p:dataTable>
            </h:form>
        </ui:define>
    </ui:composition>
</html>
